Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

popsicle-redirects

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

popsicle-redirects

Popsicle middleware for following HTTP redirects

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
32K
decreased by-58.97%
Maintainers
1
Weekly downloads
 
Created
Source

Popsicle Redirects

NPM version NPM downloads Build status Build coverage

Popsicle middleware for following HTTP redirects.

Installation

npm install popsicle-redirects --save

Usage

import { redirects } from "popsicle-redirects";

const middleware = redirects(transport());

Options

  • fn Wrap a throwback compatible middleware function in redirect behavior
  • maxRedirects Set the maximum number of redirects to attempt before throwing an error (default: 5)
  • confirmRedirect Confirmation function for following 307 and 308 non-idempotent redirects (default: () => false)

TypeScript

This project is written using TypeScript and publishes the definitions directly to NPM.

License

MIT

Keywords

FAQs

Package last updated on 09 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc